import { useContext } from 'react';
import ReactReduxContext from '../components/Context';

export default function useDispatch() {
  const store = useContext(ReactReduxContext);
  return store.dispatch;
}
